<?php

require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");

require_once('openid_include.php');

// let admins configure the OpenID client

admin_gatekeeper();
	
set_context('admin');
set_page_owner($_SESSION['guid']);
$body = elgg_view("openid_client/forms/admin",
    array(
        'default_server'    => datalist_get('openid_client_default_server'),
        'always_sync'       => datalist_get('openid_client_always_sync'),
        'greenlist'         => datalist_get('openid_client_greenlist'),
        'yellowlist'        => datalist_get('openid_client_yellowlist'),
        'redlist'           => datalist_get('openid_client_redlist'),
 ));
 
 $title = elgg_view_title(elgg_echo('openid_client:admin_title'));
 
 $body = elgg_view_layout("two_column_left_sidebar", '', $title . $body);

 page_draw($title,$body);
    

?>
